<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>{=$heading} | {=$title} | OverFish CMS</title>
    <link rel="stylesheet" href="{$basePath}/css/screen.css" type="text/css" media="screen" title="default" />
    <link rel="stylesheet" href="{$basePath}/css/smoothness/jquery-ui.css" type="text/css" media="screen" title="default" />
    <!--[if IE]>
    <link rel="stylesheet" media="all" type="text/css" href="{$basePath}/css/pro_dropline_ie.css" />
    <![endif]-->

    <!--  jquery core -->
    <script src="{$basePath}/js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="{$basePath}/js/jquery-ui.js" type="text/javascript"></script>
    <script type="text/javascript" src="{$basePath}/js/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">
        tinyMCE.init({
                mode: "specific_textareas",
                editor_selector: "mceEditor",
                theme : "advanced",
                plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste",
                file_browser_callback : "filebrowser",

        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
        theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,link,unlink,anchor,image",

theme_advanced_toolbar_location : "top",
                theme_advanced_toolbar_align : "left",
                theme_advanced_statusbar_location : "bottom",

                width : "{block #tiny_mce_width}500{/block}",
                height: "{block #tiny_mce_height}300{/block}",
                theme_advanced_buttons3_add : "fullpage"

        });

    function filebrowser(field_name, url, type, win) {
    
        fileBrowserURL = "{!$basePath}/js/tiny_mce/plugins/pdw_file_browser/index.php?editor=tinymce&filter=" + type;

        tinyMCE.activeEditor.windowManager.open({
            title: "PDW File Browser",
            url: fileBrowserURL,
            width: 950,
            height: 650,
            inline: 0,
            maximizable: 1,
            close_previous: 0
          },{
            window : win,
            input : field_name
          }
    );
}    
jQuery('a.ajax-window').live('click', function(e) {
	e.preventDefault();
        var windowTitle = $(this).attr("title");
        var windowWidth = $(this).attr("data-width");
        var windowHeight = $(this).attr("data-height");

	$.get(this.href, function (payload) {
            $( "#modal-window" ).html(payload);
            $( "#modal-window" ).dialog({
                        title: windowTitle,
			height: windowHeight * 1,
                        width: windowWidth * 1,
			modal: true
		});
    });
});
    </script>


    <!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
    <script src="{$basePath}/js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $(document).pngFix( );
    });
    </script>
    <script type="text/javascript" src="{$basePath}/js/netteForms.js"></script>
	
	{block head}{/block}
</head>

<body>
<!-- Start: page-top-outer -->
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href="{$basePath}/admin/" class="heading-logo">OverFish CMS</a>

	</div>
	<!-- end logo -->


 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">

		
			<div class="nav-divider">&nbsp;</div>
			<div class="showhide-account">Uživatel: {=$user->getIdentity()->fullname}</div>
			<div class="nav-divider">&nbsp;</div>
			<a href="{$basePath}/admin/Dashboard/logout/" id="logout">Odhlásit</a>
			<div class="clear">&nbsp;</div>
		
		</div>

		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
		<div class="table">
		
		<ul class="{if $activeMenuItem == "menu"}current{else}select{/if}"><li><a href="{$basePath}/admin/Menu/"><b>Menu</b><!--[if IE 7]><!--></a><!--<![endif]--></li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		                    
		<ul class="{if $activeMenuItem == "news"}current{else}select{/if}"><li><a href="{$basePath}/admin/News/"><b>Novinky</b><!--[if IE 7]><!--></a><!--<![endif]--></li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>

		
		<ul class="{if $activeMenuItem == "article"}current{else}select{/if}"><li><a href="{$basePath}/admin/article/"><b>Články</b><!--[if IE 7]><!--></a><!--<![endif]--></li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<ul class="{if $activeMenuItem == "gallery"}current{else}select{/if}"><li><a href="{$basePath}/admin/gallery/"><b>Fotogalerie</b><!--[if IE 7]><!--></a><!--<![endif]--></li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<ul class="{if $activeMenuItem == "user"}current{else}select{/if}"><li><a href="{$basePath}/admin/user/"><b>Uživatelé</b><!--[if IE 7]><!--></a><!--<![endif]--></li>

		</ul>
		
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		</div>
		<!--  start nav -->

</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>

<!--  start nav-outer-repeat................................................... END -->

  <div class="clear"></div>
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>{=$title}</h1>

	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="{$basePath}/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>

		<th rowspan="3" class="sized"><img src="{$basePath}/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
                            
{include #heading}

                            <div id="message-{if $flash->type == "error"}red{elseif $flash->type == "success"}green{else}yellow{/if}" n:foreach="$flashes as $flash">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="{if $flash->type == "error"}red{elseif $flash->type == "success"}green{else}yellow{/if}-left">{$flash->message}</td>
                    <td class="{if $flash->type == "error"}red{elseif $flash->type == "success"}green{else}yellow{/if}-right"><a class="close-{if $flash->type == "error"}red{elseif $flash->type == "success"}green{else}yellow{/if}"><img src="{$basePath}/images/table/icon_close_{if $flash->type == "error"}red{elseif $flash->type == "success"}green{else}yellow{/if}.gif"   alt="" /></a></td>
                </tr>
            </table>

        </div>

                            {include #content}
</div>

			<!--  end table-content  -->
	
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>

		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
<!-- <div id="footer-pad">&nbsp;</div> -->
	<!--  start footer-left -->
	<div id="footer-left">
	Copyright (c) 2011 Tomáš Holub (tomas.holub@webadvice.cz)</div>
	<!--  end footer-left -->

	<div class="clear">&nbsp;</div>
</div>
<div id="modal-window"></div>
</body>
</html>
